net: Quietly ignore DHCP Option 28 (Broadcast Address)
authorBrian Rzycki <[email protected]>
Tue, 11 Sep 2012 09:22:53 +0000 (09:22 +0000)
committerJoe Hershberger <[email protected]>
Thu, 27 Sep 2012 17:22:13 +0000 (12:22 -0500)
commitee0f60df0b71092cd632fc6651f4157a2d252598
tree2d7ac148cf2c8a7e7588a595b595309226a276d0
parenta655938a93410a468f8e2288edc20d20a272a6d4
net: Quietly ignore DHCP Option 28 (Broadcast Address)

Some DHCP servers (notably dnsmasq) always transmit DHCP Option 28,
Broadcast Address as specified in RFC 2132. Without this patch u-boot
displays the warning:
  *** Unhandled DHCP Option in OFFER/ACK: 28

The patch suppresses the warning and ignores DHCP Option 28. There is
no environment variable to set the broadcast address into and if for
some reason u-boot needs the broadcast it can be calculated from
ipaddr and netmask.

Signed-off-by: Brian Rzycki <[email protected]>
net/bootp.c